package com.yoyoyo666.report.model.common;

public class BaseResult {

    private int code;
    private boolean result;
    private String msg;

    public static  BaseResult getSuccess(){
        BaseResult s = new BaseResult();
        s.setResult(true);
        s.setCode(0);
        return s;
    }

    public static  BaseResult getFail(){
        BaseResult s = new BaseResult();
        s.setResult(false);
        s.setCode(1);
        return s;
    }


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }
}
